package com.seeyon.apps.test;

import java.io.IOException;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.apache.commons.httpclient.DefaultHttpMethodRetryHandler;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.params.HttpMethodParams;
import org.dom4j.Attribute;
import org.dom4j.Element;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

/**
 * Description
 * 
 * <pre></pre>
 */
public class getTicket {

//	本涩测试环境单点调用说明
//	http://218.94.16.61/seeyon/login/sso?from=zhihui&ticket=emJvZ2I=
	public static void main(String[] args) throws Exception {
		String userName = "yanfa";
		char[] encodeStringCharArray = userName.toCharArray();
		for (int i = 0; i < encodeStringCharArray.length; i++) {
			 encodeStringCharArray[i] += 1;
		}
		String ticket = new String(java.util.Base64.getEncoder().encode(new String(encodeStringCharArray).getBytes())); 
		System.out.println("ticket===="+ ticket);
	}


	

	




}
